package com.ytrsoft.enums;

import com.fasterxml.jackson.annotation.JsonCreator;
import io.swagger.v3.oas.annotations.media.Schema;

@Schema(description = "日程状态")
public enum ScheduleStatus {
    @Schema(description = "待确认")
    PENDING(),
    @Schema(description = "确认中")
    CONFIRMED(),
    @Schema(description = "已确认")
    COMPLETED();

    @JsonCreator
    public static ScheduleStatus enumCreator(String name) {
        return ScheduleStatus.valueOf(name);
    }
}
